]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
PolkitAgent: Look for the right password prompt
authorMatthias Clasen <mclasen@redhat.com>
Wed, 27 Jun 2012 23:22:46 +0000 (19:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Jun 2012 21:55:20 +0000 (17:55 -0400)
Pam seems to give us different strings, sometimes 'Password:',
sometimes 'Password: '. Look for both of these when replacing
them with a translated prompt.

https://bugzilla.gnome.org/show_bug.cgi?id=675300

js/ui/polkitAuthenticationAgent.js

index 20386317426f0ef641bcce4bdc2e3e70e7102c4f..152c11f6d6fd556c395575c6429afdc501156da1 100644 (file)
@@ -269,7 +269,7 @@ const AuthenticationDialog = new Lang.Class({
 
     _onSessionRequest: function(session, request, echo_on) {
         // Cheap localization trick
-        if (request == 'Password:')
+        if (request == 'Password:' || request == 'Password: ')
             this._passwordLabel.set_text(_("Password:"));
         else
             this._passwordLabel.set_text(request);